import { ModeTypeEnum } from '@/store/enums/ModeTypeEnum';
import { SwitchEnum } from '@/store/enums/SwitchEnum';
import { AuditFlagEnum } from '@/store/enums/PageTypeEnum';

const initData = () => ({
  uid: '',
  name: '',
  code: '',
  dataType: ModeTypeEnum.LIST,
  areaCode: '',
  vipLevel: SwitchEnum.CLOSE,
  slaveSw: SwitchEnum.CLOSE, // 扩展标记
  classifySw: SwitchEnum.CLOSE, // 分类标记
  classPropSw: SwitchEnum.CLOSE, // 属性模板
  linkCode: null, // 主分类 或者 主模型
  remark: null,
  auditFlag: AuditFlagEnum.SUBMIT,
  version: 0,
  swt: {
    physicTable: SwitchEnum.CLOSE, // 物理表映射
  }
});

export default {
  initData: initData,
}